# T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  T i n y s   S i m p l e   P o p   U p   I c o n s 
 
 # Q%  B y   T i n y M i n e 
 
 # Q%
 
 # Q%    F i r s t   P u b l i s h e d / E r s t v e r  f f e n t l i c h t   0 1 . 1 2 . 2 0 1 3 
 
 # Q%
 
 # Q%    V i s i t   :   h t t p : / / r p g m a k e r - v x - a c e . d e /   f o r   f u r t h e r   I n f o r m a t i o n 
 
 # Q%
 
 # Q%    S u g g e s t i o n s ?   S u p p o r t ?   B u g s ?   C o n t a c t   m e   i n   h t t p : / / r p g m a k e r - v x - a c e . d e / 
 
 # Q%
 
 # Q%    C r e d i t s   r e c o m m e n d e d   :   T i n y M i n e 
 
 # Q%    
 
 # Q%    C o m m e r c i a l   :   H a v e   f u n   w i t h   i t ! 
 
 # Q%    E d i t a b l e ?     :   O n l y   b y   o r i g i n a l   e d i t o r   T i n y M i n e 
 
 # Q%    
 
 # Q%  V e r s i o n   :   1 . 0 0   / /   0 1 . 1 2 . 2 0 1 3 
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 
 
 $ i m p o r t e d   | | =   { } 
 
 $ i m p o r t e d [ : T I N Y _ S P U I ]   =   t r u e 
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  * *   F E A T U R E S   * * 
 
 # Q%      
 
 # Q%        U s e   a   n e w   c o m m a n d   t o   p o p   u p   i c o n s   l i k e   t h e   k n o w n   b a l l o o n s . 
 
 # Q%      
 
 # Q%        %      p o p _ u p _ i t e m ( e v e n t _ i d ,   i c o n _ i n d e x [ ,   w a i t ] ) 
 
 # Q%    
 
 # Q%        W h e r e . . . 
 
 # Q%      -   e v e n t _ i d   i s   t h e   i d   o f   a n   e v e n t   w h e r e   t h e   i t e m   s h o u l d   p o p   u p   f r o m 
 
 # Q%      -   i c o n _ i n d e x   i s   t h e   n u m b e r   o f   t h e   i c o n   w h i c h   w i l l   b e   v i s i b l e 
 
 # Q%      -   w a i t   c o n t r o l l s   i f   f o l l o w i n g   c o m m a n d s   o n l y   s t a r t   w h e n   a n i m a t i o n   i s   d o n e 
 
 # Q%      
 
 # Q%        F o r   e x a m p l e   
 
 # Q%        p o p _ u p _ i t e m ( 0 ,   1 2 0 ) 
 
 # Q%        
 
 # Q%        T h e   i c o n   n u m b e r   1 2 0   w i l l   b e   v i s i b l e   o n   t h e   t r i g g e r e d   e v e n t   ( 0 ) . 
 
 # Q%        I t   w o n ' t   w a i t   b e c a u s e   d e f a u l t   i s   f a l s e .   
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  %  * *   O L D   C l a s s   S p r i t e 
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 c l a s s   S p r i t e 
 
     
 
     d e f   d r a w _ i c o n ( i c o n _ i n d e x ) 
 
         s e l f . b i t m a p   =   B i t m a p . n e w ( 2 4 ,   2 4 ) 
 
         b i a p   =   C a c h e . s y s t e m ( " I c o n s e t " ) 
 
         r e c t   =   R e c t . n e w ( i c o n _ i n d e x   %   1 6   *   2 4 ,   i c o n _ i n d e x   /   1 6   *   2 4 ,   2 4 ,   2 4 ) 
 
         s e l f . b i t m a p . b l t ( 0 ,   0 ,   b i a p ,   r e c t ) 
 
     e n d 
 
     
 
 e n d   #   S p r i t e 
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  %  * *   O L D   C l a s s   G a m e _ I n t e r p r e t e r 
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 c l a s s   G a m e _ I n t e r p r e t e r 
 
     
 
     d e f   p o p _ u p _ i t e m ( e v e n t _ i d ,   i c o n _ i n d e x ,   w a i t   =   f a l s e ) 
 
             c h a r a c t e r   =   g e t _ c h a r a c t e r ( e v e n t _ i d ) 
 
         i f   c h a r a c t e r 
 
             c h a r a c t e r . p o p _ u p _ i d   =   i c o n _ i n d e x 
 
             F i b e r . y i e l d   w h i l e   c h a r a c t e r . p o p _ u p _ i d   >   0   & &   w a i t 
 
         e n d 
 
     e n d 
 
     
 
 e n d   #   G a m e _ I n t e r p r e t e r   
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  %  * *   O L D   C l a s s   G a m e _ C h a r a c t e r B a s e 
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 c l a s s   G a m e _ C h a r a c t e r B a s e 
 
     
 
     a t t r _ a c c e s s o r   : p o p _ u p _ i d 
 
     
 
     a l i a s _ m e t h o d     : i n i t i a l i z e _ t i n y _ p o p _ u p _ 1 2 3 1 3 ,                                               : i n i t i a l i z e 
 
     
 
     d e f   i n i t i a l i z e 
 
         i n i t i a l i z e _ t i n y _ p o p _ u p _ 1 2 3 1 3 
 
         i n i t _ a d d o n _ m e m b e r s 
 
     e n d 
 
     
 
     d e f   i n i t _ a d d o n _ m e m b e r s 
 
         @ p o p _ u p _ i d   =   0 
 
     e n d 
 
 
 
 e n d   #   G a m e _ C h a r a c t e r B a s e 
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 # Q%  %  * *   O L D   C l a s s   S p r i t e _ C h a r a c t e r 
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%= # 
 
 c l a s s   S p r i t e _ C h a r a c t e r     
 
     
 
     a l i a s _ m e t h o d   : i n i t i a l i z e _ t i n y _ p o p _ u p _ 1 3 4 5 5 ,                                                 : i n i t i a l i z e 
 
     a l i a s _ m e t h o d   : d i s p o s e _ t i n y _ p o p _ u p _ 7 8 5 6 8 ,                                                             : d i s p o s e 
 
     a l i a s _ m e t h o d   : u p d a t e _ t i n y _ p o p _ u p _ 1 9 9 3 4 ,                                                                 : u p d a t e 
 
     a l i a s _ m e t h o d   : s e t u p _ n e w _ e f f e c t _ t i n y _ p o p _ u p _ 8 3 7 4 7 ,                         : s e t u p _ n e w _ e f f e c t 
 
 
 
     
 
     d e f   i n i t i a l i z e ( v i e w p o r t ,   c h a r a c t e r   =   n i l ) 
 
         @ p o p _ u p _ d u r a t i o n   =   0 
 
         i n i t i a l i z e _ t i n y _ p o p _ u p _ 1 3 4 5 5 ( v i e w p o r t ,   c h a r a c t e r ) 
 
     e n d 
 
     
 
     d e f   d i s p o s e 
 
         e n d _ p o p _ u p 
 
         d i s p o s e _ t i n y _ p o p _ u p _ 7 8 5 6 8 
 
     e n d     
 
     d e f   u p d a t e 
 
         u p d a t e _ t i n y _ p o p _ u p _ 1 9 9 3 4 
 
         u p d a t e _ p o p _ u p 
 
     e n d 
 
   
 
     d e f   s e t u p _ n e w _ e f f e c t 
 
         s e t u p _ n e w _ e f f e c t _ t i n y _ p o p _ u p _ 8 3 7 4 7 
 
         i f   ! @ p o p _ u p _ s p r i t e   & &   @ c h a r a c t e r . p o p _ u p _ i d   >   0 
 
             @ p o p _ u p _ i d   =   @ c h a r a c t e r . p o p _ u p _ i d 
 
             s t a r t _ p o p _ u p 
 
         e n d 
 
     e n d     
 
     
 
     d e f   s t a r t _ p o p _ u p 
 
         d i s p o s e _ p o p _ u p 
 
         @ p o p _ u p _ d u r a t i o n   =   1 2 0 
 
         @ p o p _ u p _ s p r i t e   =   : : S p r i t e . n e w ( v i e w p o r t ) 
 
         @ p o p _ u p _ s p r i t e . d r a w _ i c o n ( @ p o p _ u p _ i d ) 
 
         @ p o p _ u p _ s p r i t e . x   =   x 
 
         @ p o p _ u p _ s p r i t e . y   =   y 
 
         @ p o p _ u p _ s p r i t e . o x   =   1 2 
 
         @ p o p _ u p _ s p r i t e . o y   =   1 2 
 
         @ p o p _ u p _ s p r i t e . z o o m _ x   =   0 . 0 
 
         @ p o p _ u p _ s p r i t e . z o o m _ y   =   0 . 0 
 
         @ p o p _ u p _ s p r i t e . z   =   z   +   2 0 0 
 
         u p d a t e _ p o p _ u p 
 
     e n d 
 
     
 
     d e f   d i s p o s e _ p o p _ u p 
 
         i f   @ p o p _ u p _ s p r i t e 
 
             @ p o p _ u p _ s p r i t e . d i s p o s e 
 
             @ p o p _ u p _ s p r i t e   =   n i l 
 
         e n d 
 
     e n d 
 
     
 
     d e f   u p d a t e _ p o p _ u p 
 
         i f   @ p o p _ u p _ d u r a t i o n   >   0 
 
             @ p o p _ u p _ d u r a t i o n   - =   1 
 
             i f   @ p o p _ u p _ d u r a t i o n   >   0 
 
                 @ p o p _ u p _ s p r i t e . z o o m _ x   + =   0 . 0 2   i f   @ p o p _ u p _ s p r i t e . z o o m _ x   <   1 . 0 
 
                 @ p o p _ u p _ s p r i t e . z o o m _ y   + =   0 . 0 2   i f   @ p o p _ u p _ s p r i t e . z o o m _ y   <   1 . 0 
 
                 @ p o p _ u p _ s p r i t e . y   - =   0 . 2   u n l e s s   @ p o p _ u p _ s p r i t e . y   < =   y   -   h e i g h t 
 
             e l s e 
 
                 e n d _ p o p _ u p 
 
             e n d 
 
         e n d 
 
     e n d 
 
     
 
     d e f   e n d _ p o p _ u p 
 
         d i s p o s e _ p o p _ u p 
 
         @ c h a r a c t e r . p o p _ u p _ i d   =   0 
 
     e n d 
 
     
 
 e n d   #   S p r i t e _ C h a r a c t e r 
 
 
 
 # T%P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 # `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%%  E N D   O F   S C R I P T   %P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 # Z%P%= P%= P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%